<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>设备信息</title>
  <meta name="keywords" content="">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="description" content="">
  <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">  
  <link href="../css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
  <link rel="stylesheet" type="text/css" href="../js/plugins/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css">
  <link href="../css/animate.css" rel="stylesheet">
  <link href="../css/style.css?v=4.1.0" rel="stylesheet">
  <link rel="stylesheet" href="../css/labMgt/self.css">

  <script src="../js/jquery.min.js?v=2.1.4"></script>
  <script src="../js/bootstrap.min.js?v=3.3.6"></script>
  <script src="../js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
  <script src="../js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
  <script src="../js/plugins/moment/min/moment-with-locales.min.js"></script>
  <script src="../js/plugins/bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>
  <script src="../js/plugins/layer/laydate/laydate.js"></script>
  <script src="../js/editPart.js"></script>  
  <script src="../js/main.js"></script>  


  <link rel="stylesheet" href="../js/plugins/webuploader/webuploader.css">
  <script src="../js/plugins/webuploader/webuploader.js"></script> 
  

</head>
<body class="gray-bg">
  <div class="wrapper wrapper-content animated fadeInRight worker-info">

    <div class="row row-btn-item">
      <div class="col-sm-12">
          <a class="btn btn-info" onclick="window.history.go(-1)">返回</a>
      </div>
    </div>

      <div  class="ibox-content collapse in query-info" aria-expanded="true"> 

            <div class="col-sm-12">                
                <label class="detail-info-label">编辑配件</label>
            </div> 
            <form class="add-edit-form">     
                 <div class="col-sm-8">   
                    <table class="table">
                      <tbody>
                        <tr>
                          <td class="table-td-title">配件名称</td>
                          <td><input class="form-control form-control-input" name=""></td>
                          <td class="table-td-title">配件编号</td>
                          <td><input class="form-control form-control-input"  name=""></td>
                        </tr>
                        <tr>
                          <td class="table-td-title">关联设备</td>
                          <td><a class="btn btn-info" onclick="addRelation()">添加</a></td>
                          <td class="table-td-title">库存数量</td>
                          <td><input class="form-control form-control-input"  name=""></td>
                        </tr>
                        <tr>
                          <td class="table-td-title">数量单位</td>
                          <td><input class="form-control form-control-input"  name=""></td>
                          <td class="table-td-title">库存地点</td>
                          <td><input class="form-control form-control-input"  name=""></td>
                        </tr>
                        <tr>
                          <td class="table-td-title">启用日期</td>
                          <td class="table-td-input-time">
                            <input id="startTime" name="startTime"
                              type="text" date-type="start"
                              class="form-control form-control-input datetimepicker"
                              data-date-format="YYYY-MM-DD">
                          </td>
                          <td class="table-td-title">保管人员</td>
                          <td><input class="form-control form-control-input"  name=""></td>
                        </tr>
                        <tr>
                          <td class="table-td-title">库存提醒</td>
                          <td>
                                <select class="form-control form-control-input">
                                  <option value="1">请选择</option>
                                </select>
                          </td> 
                          <td class="table-td-title">提醒数量</td>
                          <td><input class="form-control form-control-input"  name=""></td>
                        </tr>
                        <tr>
                          <td class="table-td-title">备注</td>
                          <td colspan="3"><textarea class="form-control form-control-input"></textarea></td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  <div class="col-sm-4 text-center">
                            <div id="selectImgDiv" style="width: 200px;height:200px;border: 1px solid #ccc;  margin: auto;"></div>
                            <label style="padding:5px">上传成功</label>
                            <center  id="selectImg" style="margin-top:5px;">上传设备图片</center>
                  </div>

          <div class="col-sm-12 text-center">
            <button class="btn btn-sm btn-info" type="button">确 定</button>
            <button class="btn btn-sm btn-white" type="reset">重 置</button>
          </div>

          </form>
      </div>

  </div>

</body>
</html>

<!-- 关联领用-->
<div class="modal fade" id="addRelation_modal" role="dialog"
     aria-labelledby="addRelation_modal_label">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h5 class="modal-title" id="addRelation_modal_label">关联领用</h5>
            </div>
            <div class="modal-body">
                      <div >
                               <input class="form-control form-control-input" 
                               placeholder="输入设备名称" 
                               style="display: inline-block;width:70%">
                               <button class="btn btn-sm btn-info" type="button">查 询</button>
                      </div>
                    <table id="addRelationTable" class="footable table table-stripped text-center"
                    data-unique-id="id">
                            <thead>
                                <tr>
                                  <th data-checkbox="true"></th>
                                  <th data-field="field1">设备编号</th>
                                  <th data-field="field2">设备名称</th>
                                  <th data-field="field3">设备型号</th>
                                </tr>
                            </thead>
                            <tbody>
                            </tbody>
                    </table>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default" data-dismiss="modal">取 消</button>
                <button class="btn btn-primary" type="button" onclick="addModule('addChildNode_form')">确 定</button>
            </div>
        </div>
    </div>
</div>